package com.cc.visitor.service;

import com.cc.visitor.dao.EmployeeMapper;
import com.cc.visitor.entity.Employee;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * @author chanchaw
 * @create 2024-09-26 16:11
 */
@Service
public class EmployeeServiceImpl implements EmployeeService{
    @Autowired
    private EmployeeMapper dao;
    @Override
    public List<Employee> get8Department(String departmentSid) {
        return dao.getEmployee8DepartmentSid(departmentSid);
    }
    @Override
    public List<Employee> get8sname(@Param("sname") String sname){
        return dao.get8sname(sname);
    }
}
